<?php
namespace app\index\controller;

use think\Controller;
use think\Session;
use think\Cache;
/**
 * 
 */
class Ubase extends Controller
{
	
	public function _initialize()
	{
		header("Content-type:text/html;charset=utf-8");
		if (Session::has('aid')) {
			$id = Session::get('aid');
			if (Cache::get('log'.$id)) {
				Cache::set('log'.$id,'1',300);
			} else {
				Session::delete('aid');
			}
		}
	}
}